projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30db84a
)
[powerpc] Use new method to detect NULL xencomm handle
author
Jimi Xenidis
<jimix@watson.ibm.com>
Thu, 27 Jul 2006 22:57:34 +0000
(18:57 -0400)
committer
Jimi Xenidis
<jimix@watson.ibm.com>
Thu, 27 Jul 2006 22:57:34 +0000
(18:57 -0400)
old method wasted cycles and could give false positive.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
xen/arch/powerpc/usercopy.c
patch
|
blob
|
history
diff --git
a/xen/arch/powerpc/usercopy.c
b/xen/arch/powerpc/usercopy.c
index 77ec80c66c14ef224e504c1275b8c49f3fde9547..b5555860079b173ddd5650e808747e9ff52c3900 100644
(file)
--- a/
xen/arch/powerpc/usercopy.c
+++ b/
xen/arch/powerpc/usercopy.c
@@
-238,5
+238,5
@@
int xencomm_handle_is_null(void *ptr)
desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)ptr);
- return (desc->
address[0] == XENCOMM_INVALID
);
+ return (desc->
nr_addrs == 0
);
}